﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;

namespace Server_NhaSach.DataTransferObject
{
    [DataContract]
    public class KhachHangDTO
    {
        #region "Khai bao cac bien"
        private string _makh;
        private string _hotenkh;
        private string _sdt;
        private string _diachi;
        private string _email;
        private int _sofax;
        private double _congnokh;
        private string _masothue;
        #endregion
        #region "Khai bao cac thuoc tinh"
        [DataMember]
        public string Makh
        {
            get { return _makh; }
            set { _makh = value; }
        }
        [DataMember]
         public string Hotenkh
        {
            get { return _hotenkh; }
            set { _hotenkh = value; }
        }
        [DataMember]
        public string Sdt
        {
            get { return _sdt; }
            set { _sdt = value; }
        }
        [DataMember]
        public string Diachi
        {
            get { return _diachi; }
            set { _diachi = value; }
        }
        [DataMember]
        public string Email
        {
            get { return _email; }
            set { _email = value; }
        }
        [DataMember]
        public int Sofax
        {
            get { return _sofax; }
            set { _sofax = value; }
        }
        [DataMember]
        public double Congnokh
        {
            get { return _congnokh; }
            set { _congnokh = value; }
        }
        [DataMember]
        public string Masothue
        {
            get { return _masothue; }
            set { _masothue = value; }
        }
        #endregion
        #region "Khai bao cac constructor"
        public KhachHangDTO() { }
        public KhachHangDTO(string makh, string hoten, string sdt, string diachi, string email, int sofax, double congno , string masothue)
        {
            this.Makh = makh;
            this.Hotenkh = hoten;
            this.Sdt = sdt;
            this.Diachi = diachi;
            this.Email = email;
            this.Sofax = sofax;
            this.Congnokh = congno;
            this.Masothue = masothue;
        }
        public KhachHangDTO(KhachHangDTO kh)
        {
            this.Makh = kh.Makh;
            this.Hotenkh = kh.Hotenkh;
            this.Sdt = kh.Sdt;
            this.Diachi = kh.Diachi;
            this.Email = kh.Email;
            this.Sofax = kh.Sofax;
            this.Congnokh = kh.Congnokh;
            this.Masothue = kh.Masothue;
        }
        #endregion
    }
}